<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .circle-wrapper {
        width: 16px;
        border: 2px solid bisque;
        border-radius: 32px;
        border-color: transparent transparent transparent red;
    }

    .circle {
        width: 0px;
        border: 8px solid skyblue;
        border-radius: 8px;

    }
</style>

<body>
    <div class="circle-wrapper">
        <div class="circle">
        </div>
    </div>
    <script>
        var borderColor1 = "border-color: red transparent transparent transparent;"
        var borderColor2 = "border-color: transparent red transparent transparent;"
        var borderColor3 = "border-color: transparent transparent red transparent;"
        var borderColor4 = "border-color: transparent transparent transparent red;"
        var borderColor = [borderColor1, borderColor2, borderColor3, borderColor4]

        let i = 0

        setInterval(() => {

            i = i + 1;

            if (i == 4) {
                i = 0
            }

            document.getElementsByClassName('circle-wrapper')[0].style = borderColor[i]

        }, 750)
    </script>
</body>

</html>